<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Agp\CoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * Agp\CoreBundle\Entity\LayoutTicket
 *
 * @ORM\Table(name="layout_ticket")
 * @ORM\Entity(repositoryClass="Agp\CoreBundle\Repository\LayoutTicketRepository")
 */
class LayoutTicket {
    
    /**
     * @var object $layout
     * 
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity="Layout", fetch="LAZY", cascade={"persist","merge"}, inversedBy="layoutReference")
     * @ORM\JoinColumn(name="cod_layout", referencedColumnName="cod_layout", onDelete="Cascade", nullable=false)
     * 
     */
    protected $layout;
    
    /**
     * @var object $componente
     * 
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity="Componente", fetch="LAZY", cascade={"persist","merge"})
     * @ORM\JoinColumn(name="cod_componente", referencedColumnName="cod_componente", onDelete="Cascade", nullable=false)
     * 
     */
    protected $componente;
    
    /**
     * @var string $atributo
     * 
     * @ORM\Column(name="atributo", type="string", length=255, nullable=true)
     * 
     */
    protected $atributo;
    
    /**
     *
     * @var integer
     * @ORM\Column(name="indice", type="string", length=5, nullable=true)
     */
    protected $indice;
    
    public function getLayout() {
        return $this->layout;
    }

    public function setLayout($layout) {
        $this->layout = $layout;
    }

    public function getComponente() {
        return $this->componente;
    }

    public function setComponente($componente) {
        $this->componente = $componente;
    }

    public function getAtributo() {
        return $this->atributo;
    }

    public function setAtributo($atributo) {
        $this->atributo = $atributo;
    }
    
    public function getIndice() {
        return $this->indice;
    }

    public function setIndice($indice) {
        $this->indice = $indice;
    }



}

?>
